package com.sc.web.gwt.client;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.google.gwt.core.client.GWT;

/**
 * Created by KienCT
 * Date: 29-05-2011
 * Time: 18:47:26
 */
@RemoteServiceRelativePath("GetTokenKeyService")
public interface GetTokenKeyService extends RemoteService {
    String getTokenKey();

    /**
     * Utility/Convenience class.
     * Use GetTokenKeyService.App.getInstance() to access static instance of GetTokenKeyServiceAsync
     */
    public static class App {
        private static final GetTokenKeyServiceAsync ourInstance = (GetTokenKeyServiceAsync) GWT.create(GetTokenKeyService.class);

        public static GetTokenKeyServiceAsync getInstance() {
            return ourInstance;
        }
    }
}
